﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Skyworth.CRM.Service.Entity
{
    /// <summary>
    /// 用户帐户信息表
    /// </summary>
    [Serializable]
    public class Users
    {
        public Users()
        { }
        #region Model
        private int _userid;
        private int? _individualId;
        private string _username;
        private string _password;
        private string _email;
        private int _usertype;
        private DateTime _createtime = DateTime.Now;
        private DateTime? _lastlogintime = DateTime.Now;
        private bool _isdelete = false;
        private DateTime _lastmodifytime = DateTime.Now;
        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId
        {
            set { _userid = value; }
            get { return _userid; }
        }

        public int? IndividualId
        {
            set { _individualId = value; }
            get { return _individualId; }
        }

        /// <summary>
        /// 登录名
        /// </summary>
        public string UserName
        {
            set { _username = value; }
            get { return _username; }
        }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password
        {
            set { _password = value; }
            get { return _password; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Email
        {
            set { _email = value; }
            get { return _email; }
        }
        /// <summary>
        /// 1：内部员工；2：客户
        /// </summary>
        public int UserType
        {
            set { _usertype = value; }
            get { return _usertype; }
        }
        /// <summary>
        /// 帐户创建时间
        /// </summary>
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        /// <summary>
        /// 上一次登录的时间
        /// </summary>
        public DateTime? LastLoginTime
        {
            set { _lastlogintime = value; }
            get { return _lastlogintime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool IsDelete
        {
            set { _isdelete = value; }
            get { return _isdelete; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime LastModifyTime
        {
            set { _lastmodifytime = value; }
            get { return _lastmodifytime; }
        }
        #endregion Model

    }
}
